local shijun = fk.CreateSkill {
  name = "water_shijun",
}

Fk:loadTranslationTable{
  ["water_shijun"] = "弑君",
  [":water_shijun"] = "锁定技，出牌阶段限一次，你选择一名其他角色并声明一种花色其不能使用或打出此花色，直到你下次再使用【弑君】。",
  ["#water_shijun_target"] = "弑君：请选择一名其他角色",
  ["#water_shijun_suit"] = "请选择一种花色",
  ["@shijun_forbid"] = "弑君",
}
--[
shijun:addEffect("active", {
  anim_type = "offensive",
  card_num = 0,
  target_num = 1,
  interaction = UI.ComboBox { choices = {"log_spade", "log_club", "log_heart", "log_diamond"} },
  target_filter = function(self, player, to_select, selected)
    return #selected == 0 and to_select ~= player
  end,
  can_use = function(self, player)
    return  player:usedSkillTimes(self.name,Player.HistoryGame)==0
  end,
  on_use = function(self, room, effect)
    local player = effect.from
    local target = effect.tos[1]
    room:setPlayerMark(target, "@shijun_forbid", self.interaction.data )
    
  end,
})
--]]
shijun:addEffect("prohibit", {
  prohibit_use = function(self, player, card)
    local subcards = card:isVirtual() and card.subcards or {card.id}
    return player:getMark("@shijun_forbid") and player:getMark("@shijun_forbid") == card:getSuitString(true)
  end,
  prohibit_response = function(self, player, card)
    local subcards = card:isVirtual() and card.subcards or {card.id}
    return player:getMark("@shijun_forbid") and player:getMark("@shijun_forbid") == card:getSuitString(true)
  end,
})


return shijun 